package com.dong.mcd.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.dong.mcd.model.SysRole;
import com.dong.mcd.model.SysRoleExample;
import com.dong.mcd.param.RoleParam;
import com.dong.mcd.pub.PagerMapper;

public interface SysRoleMapper extends PagerMapper {
    int countByExample(SysRoleExample example);

    int deleteByExample(SysRoleExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(SysRole record);

    int insertSelective(SysRole record);

    List<SysRole> selectByExample(SysRoleExample example);

    SysRole selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") SysRole record, @Param("example") SysRoleExample example);

    int updateByExample(@Param("record") SysRole record, @Param("example") SysRoleExample example);

    int updateByPrimaryKeySelective(SysRole record);

    int updateByPrimaryKey(SysRole record);
    
    void deleteRoleMenu(@Param("roleId")Integer roleId);
    
    void saveRoleMenu(RoleParam param);
    
}